package cn.linter.oasys.user.service;

import cn.linter.oasys.user.entity.Flow;
import cn.linter.oasys.user.vo.OAvo;
import cn.linter.oasys.user.vo.OperateVO;

import java.util.List;

/**
 * @ClassName: FlowService
 * @Description:
 * @author: WangZe
 * @date: 2022/4/12 13:48
 */
public interface FlowService {

    /**
     * 发送OA
     * @param sendName
     * @param applyName
     * @return OAvo
     */
    OAvo sendOA(String sendName,String applyName);


    /**
     * 审批OA
     */
    OperateVO operateOA(String taskId, String applyName, String result, String text);

    /**
     * 根据UserName查询所有Flow
     * @param userName
     * @return
     */
    List<Flow> findBySendUser(String userName);

    List<Flow> findByApplyUser(String userName);

    int delete(String taskId, String processId);
}
